package com.bank.domain;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "sessions")
public class Session implements Serializable {

	private static final long serialVersionUID = 5924361831551833717L;
	@Id
	@Column(name = "TASK_ID")
	@GeneratedValue
	private Integer taskId;

	@Column(name = "TASK_HASH")
	private String taskHash;	
	
	@Column(name = "USER_SESSION")
	private String userSession;
	
	@Column(name = "SESSION_STARTED")
	private Timestamp sessionStarted;	
	
	@Column(name = "SESSION_TTL")
	private Integer sessionTtl;		
	

	

	
	
}
